package com.neusoft.controller.physician;

import com.neusoft.bean.PrescriptionBean;
import com.neusoft.service.PrescriptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/prescriptions")
public class PrescriptionController {
    @Autowired
    PrescriptionService prescriptionService;
    @PostMapping("/savePrescription")
    public void savePrescription(@RequestBody PrescriptionBean prescription) {
        prescriptionService.savePrescription(prescription);
    }
}
